import request from '@/utils/request';
//    /api   /sysapi  
//登录
export function loginInfo(data) {
  return request({
    url: '/api/admin-api/system/auth/login',
    method: 'post',
    data,
    headers: { showLoading :true}
  })
}

//获取租户id
export function getByName(params) {
  return request({
    url: '/api/admin-api/system/tenant/get-id-by-name',
    method: 'get',
    params,
  })
}
//获取验证码
export function getCodeImg() {
  return request({
    url: '/sysapi/captchaImage',
    method: 'get',
    headers: { showLoading :false}
  })
}
